package com.hyperfix.models.washer.dtos;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/8
 */
@HeadRowHeight(30)
@ColumnWidth(16)
@Data
public class RecordDTO {
    @ExcelProperty("数据编号")
    private Long id;
    @ExcelProperty("温度(℃)")
    private Double temperature;
    @ExcelProperty("压力（MPa）")
    private Double pressure;
    @ExcelProperty("油压(MPa)")
    private Double oilPressure;
    @ExcelProperty("套压(MPa)")
    private Double casingPressure;
    @ExcelProperty("差压(Pa)")
    private Integer diffPressure;
    @ColumnWidth(25)
    @ExcelProperty("瞬时流量(m³/h)")
    private Integer flow;
    @ColumnWidth(30)
    @ExcelProperty("日累计流量(m³/d)")
    private Integer totalFlow;
    @ColumnWidth(30)
    @ExcelProperty("记录时间")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime recordTime;
}
